<template>
  <div class="scroll-top" @click="returnTop">
    <div class="box-in"></div>
  </div>
</template>

<script lang="ts" setup>
  const returnTop = () => {
    document.documentElement.scrollTop = 0;
    document.body.scrollTop = 0;
  };
</script>

<style lang="less" scoped>
  @import '@/assets/css/scroll-top.less';
</style>
